{extend name='common@layout/seller' /}
{block name="left"}{include file='goods/left'}{/block}
{block name="breadcrumb"}
<div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心<i class="icon-angle-right"></i>商品<i class="icon-angle-right"></i>关联版式</div>
{/block}
{block name='content'}
<div class="tabmenu">
    <ul class="tab pngFix">
        <li class="active"><a>版式列表</a></li>
    </ul>
    <a href="/?s=seller/plate/modify" class="ncsc-btn ncsc-btn-green" title="添加关联版式">添加关联版式</a>
</div>
<div class="alert mt15 mb5"><strong>操作提示：</strong>
    <ul>
        <li>1、关联版式可以把预设内容插入到商品描述的顶部或者底部，方便商家对商品描述批量添加或修改。</li>
    </ul>
</div>
<!-- to do 搜索
<form method="get">
    <input type="hidden" name="act" value="store_plate">
    <table class="search-form">
        <tr>
            <td>&nbsp;</td>
            <th>版式位置</th>
            <td class="w80">
                <select name="p_position">
                    <option>请选择</option>
                    <option value="0" >底部</option>
                    <option value="1" >顶部</option>
                </select>
            </td><th>版式名称</th>
            <td class="w160"><input type="text" class="text w150" name="p_name" value=""/></td>
            <td class="w70 tc"><label class="submit-border"><input type="submit" class="submit" value="搜索" /></label></td>
        </tr>
    </table>
</form>
-->
<table class="ncsc-default-table">
    <thead>
        <tr>
            <th class="w30"></th>
            <th class="tl">版式名称</th>
            <th class="w200">版式位置</th>
            <th class="w110">操作</th>
        </tr>
        {notempty name='lists'}
        <tr>
            <td class="tc"><input type="checkbox" id="all" class="checkall"/></td>
            <td colspan="10"><label for="all" >全选</label>
                <a href="javascript:void(0);" nc_type="batchbutton" uri="/?s=seller/plate/drop" name="p_id" confirm="您确定要删除吗?" class="ncsc-btn-mini"><i class="icon-trash"></i>删除</a>
            </td>
        </tr>
        {/notempty}
    </thead>
    <tbody>
        {foreach $lists as $one}
        <tr class="bd-line">
            <td class="tc"><input type="checkbox" class="checkitem tc" value="{$one.plate_id}"/></td>
            <td class="tl">{$one.plate_name}</td>
            <td>{eq name='one.plate_position' value='1'}顶部{else/}底部{/eq}</td>
            <td class="nscs-table-handle">
                <span><a href="/?s=seller/plate/modify&p_id={$one.plate_id}" class="btn-blue"><i class="icon-edit"></i><p>编辑</p></a></span>
                <span><a href="javascript:void(0)" onclick="ajax_get_confirm('您确定要删除吗?', '/?s=seller/plate/drop&p_id={$one.plate_id}');" class="btn-red"><i class="icon-trash"></i><p>删除</p></a></span>
            </td>
        </tr>
        {/foreach}
    </tbody>
    {notempty name='lists'}
    <tfoot>
        <tr>
            <th class="tc"><input type="checkbox" id="all" class="checkall"/></th>
            <th colspan="10"><label for="all" >全选</label>
                <a href="javascript:void(0);" nc_type="batchbutton" uri="/?s=seller/plate/drop" name="p_id" confirm="您确定要删除吗?" class="ncsc-btn-mini"><i class="icon-trash"></i>删除</a>
            </th>
        </tr>
        <tr>
            <td colspan="20">{$lists->render()}</td>
        </tr>
    </tfoot>
        {else /}
        <tr>
            <td colspan="10" class="norecord"><div class="warning-option"><i class="icon-warning-sign"></i><span>暂无符合条件的数据记录</span></div></td>
        </tr>
    {/notempty}
</table>
{/block}